package com.bw.usercenter.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bw.mvpcore.glideload.GlidImg
import com.bw.usercenter.R
import com.bw.usercenter.model.protocol.resp.RespGoodEntity
import com.bw.usercenter.model.protocol.resp.RespSearchEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class RecyclerviewAdapte(data: MutableList<RespSearchEntity.Data>?) :
    BaseQuickAdapter<RespSearchEntity.Data, BaseViewHolder>(R.layout.finditem, data) {
    override fun convert(holder: BaseViewHolder, item: RespSearchEntity.Data) {
//        GlidImg.glidImg.getimg(context,holder.getView(R.id.find_img),item.Url)
        Glide.with(context).load(item.PictUrl).into(holder.getView(R.id.find_img))
    }


}